package com.oracle.pojo;

import java.util.ArrayList;
import java.util.List;

public class GlyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GlyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGlyIdIsNull() {
            addCriterion("gly_id is null");
            return (Criteria) this;
        }

        public Criteria andGlyIdIsNotNull() {
            addCriterion("gly_id is not null");
            return (Criteria) this;
        }

        public Criteria andGlyIdEqualTo(Integer value) {
            addCriterion("gly_id =", value, "glyId");
            return (Criteria) this;
        }

        public Criteria andGlyIdNotEqualTo(Integer value) {
            addCriterion("gly_id <>", value, "glyId");
            return (Criteria) this;
        }

        public Criteria andGlyIdGreaterThan(Integer value) {
            addCriterion("gly_id >", value, "glyId");
            return (Criteria) this;
        }

        public Criteria andGlyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("gly_id >=", value, "glyId");
            return (Criteria) this;
        }

        public Criteria andGlyIdLessThan(Integer value) {
            addCriterion("gly_id <", value, "glyId");
            return (Criteria) this;
        }

        public Criteria andGlyIdLessThanOrEqualTo(Integer value) {
            addCriterion("gly_id <=", value, "glyId");
            return (Criteria) this;
        }

        public Criteria andGlyIdIn(List<Integer> values) {
            addCriterion("gly_id in", values, "glyId");
            return (Criteria) this;
        }

        public Criteria andGlyIdNotIn(List<Integer> values) {
            addCriterion("gly_id not in", values, "glyId");
            return (Criteria) this;
        }

        public Criteria andGlyIdBetween(Integer value1, Integer value2) {
            addCriterion("gly_id between", value1, value2, "glyId");
            return (Criteria) this;
        }

        public Criteria andGlyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("gly_id not between", value1, value2, "glyId");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameIsNull() {
            addCriterion("gly_username is null");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameIsNotNull() {
            addCriterion("gly_username is not null");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameEqualTo(String value) {
            addCriterion("gly_username =", value, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameNotEqualTo(String value) {
            addCriterion("gly_username <>", value, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameGreaterThan(String value) {
            addCriterion("gly_username >", value, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("gly_username >=", value, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameLessThan(String value) {
            addCriterion("gly_username <", value, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameLessThanOrEqualTo(String value) {
            addCriterion("gly_username <=", value, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameLike(String value) {
            addCriterion("gly_username like", value, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameNotLike(String value) {
            addCriterion("gly_username not like", value, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameIn(List<String> values) {
            addCriterion("gly_username in", values, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameNotIn(List<String> values) {
            addCriterion("gly_username not in", values, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameBetween(String value1, String value2) {
            addCriterion("gly_username between", value1, value2, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyUsernameNotBetween(String value1, String value2) {
            addCriterion("gly_username not between", value1, value2, "glyUsername");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordIsNull() {
            addCriterion("gly_password is null");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordIsNotNull() {
            addCriterion("gly_password is not null");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordEqualTo(String value) {
            addCriterion("gly_password =", value, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordNotEqualTo(String value) {
            addCriterion("gly_password <>", value, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordGreaterThan(String value) {
            addCriterion("gly_password >", value, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("gly_password >=", value, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordLessThan(String value) {
            addCriterion("gly_password <", value, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordLessThanOrEqualTo(String value) {
            addCriterion("gly_password <=", value, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordLike(String value) {
            addCriterion("gly_password like", value, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordNotLike(String value) {
            addCriterion("gly_password not like", value, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordIn(List<String> values) {
            addCriterion("gly_password in", values, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordNotIn(List<String> values) {
            addCriterion("gly_password not in", values, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordBetween(String value1, String value2) {
            addCriterion("gly_password between", value1, value2, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyPasswordNotBetween(String value1, String value2) {
            addCriterion("gly_password not between", value1, value2, "glyPassword");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameIsNull() {
            addCriterion("gly_realname is null");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameIsNotNull() {
            addCriterion("gly_realname is not null");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameEqualTo(String value) {
            addCriterion("gly_realname =", value, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameNotEqualTo(String value) {
            addCriterion("gly_realname <>", value, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameGreaterThan(String value) {
            addCriterion("gly_realname >", value, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameGreaterThanOrEqualTo(String value) {
            addCriterion("gly_realname >=", value, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameLessThan(String value) {
            addCriterion("gly_realname <", value, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameLessThanOrEqualTo(String value) {
            addCriterion("gly_realname <=", value, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameLike(String value) {
            addCriterion("gly_realname like", value, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameNotLike(String value) {
            addCriterion("gly_realname not like", value, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameIn(List<String> values) {
            addCriterion("gly_realname in", values, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameNotIn(List<String> values) {
            addCriterion("gly_realname not in", values, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameBetween(String value1, String value2) {
            addCriterion("gly_realname between", value1, value2, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyRealnameNotBetween(String value1, String value2) {
            addCriterion("gly_realname not between", value1, value2, "glyRealname");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneIsNull() {
            addCriterion("gly_phone is null");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneIsNotNull() {
            addCriterion("gly_phone is not null");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneEqualTo(String value) {
            addCriterion("gly_phone =", value, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneNotEqualTo(String value) {
            addCriterion("gly_phone <>", value, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneGreaterThan(String value) {
            addCriterion("gly_phone >", value, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("gly_phone >=", value, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneLessThan(String value) {
            addCriterion("gly_phone <", value, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneLessThanOrEqualTo(String value) {
            addCriterion("gly_phone <=", value, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneLike(String value) {
            addCriterion("gly_phone like", value, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneNotLike(String value) {
            addCriterion("gly_phone not like", value, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneIn(List<String> values) {
            addCriterion("gly_phone in", values, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneNotIn(List<String> values) {
            addCriterion("gly_phone not in", values, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneBetween(String value1, String value2) {
            addCriterion("gly_phone between", value1, value2, "glyPhone");
            return (Criteria) this;
        }

        public Criteria andGlyPhoneNotBetween(String value1, String value2) {
            addCriterion("gly_phone not between", value1, value2, "glyPhone");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}